! name: b.ajt01*
! type: ArchiCAD Door File
! ***** 3D script *****

mat1 = c
mat2 = d
tsz = e

addz -0.02
prism_   4, 0.07, 

    -a/2+tsz-0.03, 0.01, 15,
     a/2-tsz+0.03, 0.01, 15,
     a/2-tsz+0.03, b-tsz+0.03, 15,
    -a/2+tsz-0.03, b-tsz+0.03, 15


addz 0.07
addx a/2-tsz
addy 0.01
roty -90
rotz 90
 
prism_   5, a-2*tsz, 
      0, 0, 15,
      0.07, 0, 15,
      0.07, -0.005, 15,
      0.05, -0.025, 15,
      0, -0.025, 15

del 5


addy 1.015
addx -a/2+tsz+0.13/2
addz 0.07

call "handle_3" mat2

addz -0.07
mulz -1

call "handle_4" mat2
